// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue"
import App from "./App"
import router from "./router"
import store from "./store/"
import {
    importApi
} from "./utils/api"
import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"
import "../static/common.css"
import "swiper/dist/css/swiper.css"
import Vuex from "vuex"

Vue.use(Vuex)
Vue.use(ElementUI)
importApi(Vue)
// Vue.use(VueAwesomeSwiper)

// Vue.config.productionTip = false
// const wsuri = "ws://192.168.2.68:8011/websocket/" + "xxx"
// Vue.prototype.websock = new WebSocket(wsuri)
/* eslint-disable no-new */
new Vue({
    el: "#app",
    router,
    store,
    components: {
        App
    },
    template: "<App/>"
})
